<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%> 
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%> 
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/translator.tld" prefix="trans" %>

<trans:initPage module="listalerts" />
<tr bgcolor="#FFFFFF" align=center>
<td class="text_searchbold" width=30>

</td>
<td class="text_searchbold">
<trans:showPageMessage label="listalerts.alertname" />
</td>
<td class="text_searchbold">
<trans:showPageMessage label="listalerts.issuedate" />
</td>

</tr>
<form method=POST action=<html:rewrite page="/alert.do?mode=delete"/> >
<input type="hidden" name="mode" value="delete"/>
<logic:present name="alerts">
<logic:iterate scope="request" name="alerts" id="alert">
<tr>
<td bgcolor="#FFFFFF" width=30>
<input type='checkbox' name='delalerts' value='<bean:write name="alert" property="params"/>' />
</td>
<td bgcolor="#FFFFFF">
	<logic:notPresent name="alert" property="read">
	<b>
	</logic:notPresent>

<html:link page="/alert.do?mode=view" name="alert" property="params">

<logic:equal name="alert" property="alertType" value="1">
<trans:showPageMessage label="viewalerts.approvalalert" /> : <trans:showPageMessage label="viewalerts.approve" />
</logic:equal>
<logic:equal name="alert" property="alertType" value="2">
<trans:showPageMessage label="viewalerts.filteralertfor" />
</logic:equal>
<logic:equal name="alert" property="alertType" value="3">
<trans:showPageMessage label="viewalerts.messagealertfor" />
</logic:equal>

	<logic:equal name="alert" property="sourceType" value="1">
<trans:showPageMessage label="viewalerts.aproject" />
	</logic:equal>
	<logic:equal name="alert" property="sourceType" value="2">
<trans:showPageMessage label="viewalerts.anorg" />
	</logic:equal>
	<logic:equal name="alert" property="sourceType" value="3">
<trans:showPageMessage label="viewalerts.aperson" />
	</logic:equal>
</html:link>
	<logic:notPresent name="alert" property="read">
	</b>
	</logic:notPresent>

</td>
<td bgcolor="#FFFFFF">
<bean:write name="alert" property="sent"/>
</td>
</tr>
</logic:iterate>
</logic:present>
<tr>
<td bgcolor="#FFFFFF">
</td>
<td bgcolor="#FFFFFF">
<input class=buton type=submit value="<trans:showPageMessage label="viewalerts.delselectedalerts" hide_link="true" />" />
</td>
<td bgcolor="#FFFFFF">
</td>
</tr>
<logic:present name="pagetk">
<tr>
<td colspan=2 bgcolor="#FFFFFF">
<trans:showPageMessage label="listalerts.pages" /> 
<logic:iterate scope="request" name="pagetk" id="token">
<html:link page="/alert.do" name="token" property="params">
<bean:write name="token" property="no"/>
</html:link>
&nbsp;|&nbsp;
</logic:iterate>
</td>
</tr>
</logic:present>
</form><trans:showPageMessage label="translator.showhiddentags"/>